﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CreateEdit.aspx.cs" Inherits="School_ExamDetail_CreateEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h3>
        Create/Edit</h3>
    <hr />
    <div>
        <asp:ValidationSummary ID="vsExamDetail" ValidationGroup="ExamDetail" runat="server"
            BackColor="#FFCCFF" BorderStyle="Solid" BorderWidth="1px" ForeColor="#FF3300"
            ShowMessageBox="True" />
    </div>
    <asp:HiddenField ID="hidExamDetailId" runat="server" Value="-1" />
    <asp:HiddenField ID="hidCompanyId" runat="server" Value="-1" />
    <asp:Label runat="server" ID="lblCompany" Font-Size="Large" Font-Bold="true" /><br />
    <table>
        <tr>
            <td>
                Course Subject
            </td>
            <td>
                <asp:DropDownList ID="ddlCourseSubjectList" Width="350px" runat="server" OnSelectedIndexChanged="ddlCourseSubjectList_SelectedIndexChanged"
                    AutoPostBack="True">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvCourseSubjectList" runat="server" ErrorMessage="Course subject is required!"
                    ControlToValidate="ddlCourseSubjectList" Text="*" ValidationGroup="ExamDetail"
                    ForeColor="#FF3300" InitialValue="-1"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td colspan="5">
                <asp:Label ID="lblCourseSubject" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Exam
            </td>
            <td>
                <asp:DropDownList ID="ddlExamList" Width="350px" runat="server">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvExam" runat="server" ErrorMessage="Exam is required!"
                    ControlToValidate="ddlExamList" Text="*" ValidationGroup="ExamDetail" ForeColor="#FF3300"
                    InitialValue="-1"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td colspan="4">
                <asp:Label ID="lblMessage" Font-Bold="true" ForeColor="Red" runat="server" Text=""></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Name:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtExamDetailName" MaxLength="250" Width="520px"
                    AutoCompleteType="DisplayName" />
                <asp:RequiredFieldValidator ID="rfvExamDetailName" runat="server" ErrorMessage="Name is required!"
                    ControlToValidate="txtExamDetailName" Text="*" ValidationGroup="ExamDetail" ForeColor="#FF3300"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Description:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtDescription" MaxLength="2000" Width="520px" AutoCompleteType="DisplayName"
                    Rows="4" TextMode="MultiLine" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSubmit" ValidationGroup="ExamDetail" CausesValidation="true" runat="server"
                    Text="Submit" OnClick="btnSubmit_Click" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
